package com.huajx.core.common;

import java.util.HashMap;
import java.util.Map;

public class Cache {
    private final static Map<String, Object> cache = new HashMap<>();
    public static void set(String key, Object value){
        cache.put(key, value);
    }
    public static  <T> T get(String key){
        return (T)cache.get(key);
    }
    public static void remove(String key){
        cache.remove(key);
    }
}
